Object.defineProperty(exports, "__esModule", {
    value: !0
}), exports.changeByte = void 0;

exports.changeByte = function(t) {
    var e = "";
    e = t < 1024 ? "".concat(t.toFixed(2), "B") : t < 1048576 ? "".concat((t / 1024).toFixed(2), "KB") : t < 1073741824 ? "".concat((t / 1048576).toFixed(2), "MB") : "".concat((t / 1073741824).toFixed(2), "GB");
    var o = "".concat(e), c = o.indexOf(".");
    return "00" == o.substr(c + 1, 2) ? o.substring(0, c) + o.substr(c + 3, 2) : e;
};